import time
from selenium import webdriver
from selenium.webdriver.common.by import By
class TestHome():
    def setup(self):
        self.driver = webdriver.Chrome()
        self.driver.maximize_window()
        self.driver.implicitly_wait(5) #隐式等待
    def testhome1(self):
        # 访问网站
        self.driver.get('https://testerhome.com/')
        # 定位社团操作
        self.driver.find_element(By.LINK_TEXT,'社团').click()
        time.sleep(3)
        self.driver.find_element(By.LINK_TEXT,'求职面试圈').click()
    def teardown(self):
        self.driver.quit()  # 用完驱动回收掉
